package com.checkoutcheckins.client.data.foursquare;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gson.annotations.Expose;
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Checkin implements Serializable {

	private static final long serialVersionUID = -7357247499346201505L;

	@PrimaryKey
	@Persistent
	private String id;
	
	@Persistent
	private String created;
	
	@Persistent
	private String shout;
	
	@NotPersistent
	private FoursquareUser user;
	
	@NotPersistent
	private Venue venue;

	@Expose(deserialize = false) private Date createdDate;
	@Expose(deserialize = false) private String foursquareid;
	@Expose(deserialize = false) private String venueid;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreatedString() {
		return created;
	}

	public void setCreatedString(String created) {
		this.created = created;
	}

	public Venue getVenue() {
		return venue;
	}

	public void setVenue(Venue venue) {
		this.venue = venue;
	}

	public String getShout() {
		return shout;
	}

	public void setShout(String shout) {
		this.shout = shout;
	}

	public String getCreated() {
		return created;
	}

	public void setCreated(String created) {
		this.created = created;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getFoursquareid() {
		return foursquareid;
	}

	public void setFoursquareid(String foursquareid) {
		this.foursquareid = foursquareid;
	}

	public String getVenueid() {
		return venueid;
	}

	public void setVenueid(String venueid) {
		this.venueid = venueid;
	}

	public FoursquareUser getUser() {
		return user;
	}

	public void setUser(FoursquareUser user) {
		this.user = user;
	}

}
